<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style>
        .right,.center,.left{
            width:300px;
            height: 300px;
        }
        .right{
            background: red;
        }
        .center{
            float: left;
            background: green;
            display: inline-block;
        }
        .left{
            background: blue;
        }
    </style>
    <title>浮动测试</title>
</head>
<body>
<div class="right"></div>
<div class="center"></div>
<div class="left"></div>
</body>
</html>